package demo3;

public class MathDemo {
    public static  double  division(double a,double b) throws CalculateException {
        if(b==0) throw new CalculateException("除法为0，无法计算");
        else return  a/b;
    }
}
